﻿@using System.Diagnostics.CodeAnalysis
<Dropdown Trigger=@(new Trigger[]{Trigger.Click}) HiddenMode=@Options.HiddenMode>
    <Overlay>
        <Menu>
            @foreach (var item in Options.Actions ?? [])
            {
                <MenuItem OnClick="@item.OnClick">
                    <Button Type="@AntDesign.ButtonType.Text">@item.Label</Button>
                </MenuItem>
            }
        </Menu>
    </Overlay>
    <ChildContent>
        @Options.Content
    </ChildContent>
</Dropdown>

@code {
    [Parameter, NotNull] public DropdownOptions? Options { get; set; }
}